
OBJS=ut.o
UT_OBJS=ut_ll.o ut_attr.o
DEP_OBJS=../src/ll.o ../src/abstract/attribute.o

UT_PROG=ut

all : ${UT_PROG}

dep :
	make -C ../src

# ====================================================


CC=g++
LD=g++
AR=ar
RANLIB=ranlib

CFLAGS=-g
LDFLAGS=

.PHONY = clean all test dep

test :  ${UT_PROG}
	./${UT_PROG}

${UT_PROG}: dep ${OBJS} ${UT_OBJS}
	${LD} ${LDFLAGS} ${LIBS} -o $@ ${OBJS} ${UT_OBJS} ${DEP_OBJS}

%.o : %.c
	${CC} -c ${CFLAGS} -I../src -I../src/redeye ${INCLUDES} -o $@ $<

clean :
	rm -f ${UT_PROG} ${OBJS} ${UT_OBJS}
